import request from '@/utils/request'
export default {
    //获取活期基金分页列表
    getManager(page, limit, manager) {
        return request({
            url: `/fundManager/info/${page}/${limit}`,
            method: 'post',
            data: manager

        })
    },
    getManagetInfo() {
        return request({
            url: `/fundManager/infos`,
            method: 'post',
        })
    },
    //移除活期基金到回收站或者删除
    saveManager(manager) {
        return request({
            url: `/fundManager/add`,
            method: 'post',
            data: manager
        })
    },
    //删除活期基金
    deleteManagerById(id) {
        return request({
            url: `/fundManager/delete/${id}`,
            method: 'get',

        })
    },
    //编辑活期基金
    updateManager(manager) {
        return request({
            url: `/fundManager/update`,
            method: 'post',
            data: manager

        })
    },
    getManagerById(id) {
        return request({
            url: `/fundManager/getOne/${id}`,
            method: 'get',
        })
    },
}

